package basic.security.password;

import java.io.BufferedReader;
import java.io.FileReader;

public class DoAttack {
	public static void main(String args[]) throws Exception {
		if (args.length < 2) {
			args = new String[1];
			args[0] = "xyx";
		}
		
		String md;
		BufferedReader in = new BufferedReader(new FileReader("dict.txt"));
		while ((md = in.readLine()) != null) {
			if (md.indexOf(args[0]) != -1) {
				System.out.println(md);
				break;
			}
		}
		in.close();
	}
}
